package com.meituan.sdk.model.ddzhkh.auth.queryPoiMapping;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 对应客户门店ID映射关系
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzhkh/auth/token/queryPoiMapping",
    businessId = 59,
    apiVersion = "10000",
    apiName = "query_poi_mapping",
    needAuth = true
)
public class QueryPoiMappingRequest implements MeituanRequest<QueryPoiMappingResponse> {
    /**
    * <p data-diff-id="ct-diff-id-2aa26bf8-ce31-4152-9ebc-417bb069f56f">列表长度大于0，小于等于100</p>
    */
    @NotEmpty(message = "poiIds不能为空")
    @SerializedName("poiIds")
    private List<Long> poiIds;

    public List<Long> getPoiIds() {
        return poiIds;
    }
    public void setPoiIds(List<Long> poiIds) {
        this.poiIds = poiIds;
    }


    @Override
    public MeituanResponse<QueryPoiMappingResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<QueryPoiMappingResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "QueryPoiMappingRequest{" + "poiIds=" + poiIds + "}";
    }
}
